<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><s:property value="#session.access"/></title>
<meta name="viewport" content="width=device-width,inital-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/css/bootstrap.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/css/bootstrap-responsive.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/js/date/skin/WdatePicker.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/bootstrap.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/date/WdatePicker.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sform").validate({
			rules : {
				mbAmount : {	required : true,number : true}
			},
			errorPlacement : function(error, element) {
				element.css("border-color","red");
			},
		});
	});
	
	function formSubmit(){
		if($('#sform').valid()){
			$.MsgBox.Confirm('提示', '提现金额为: '+$("#mbAmount").val()+' ,确认提交该提现申请吗?', function(){
					$('#sform').submit();
			});
		}
		
	}
</script>
</head>
<body>
	<div class="container">
		
		<s:action name="global_menu"  executeResult="true"></s:action>
		
		<div class="row">
			<div class="span12">
					<ul class="breadcrumb">
						<li>
							<a href="javascript:void(0)">首页</a> <span class="divider">/</span>
						</li>
						<li>
							<a href="javascript:void(0)">资金情况</a> <span class="divider">/</span>
						</li>
						<li class="active">
							我要提现
						</li>
					</ul>
					
					<h4>
						开户帐户信息
					</h4>
					<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
						<table style="width: 100%;">
							<tr>
								<td width="25%" height="30">开户行 : <s:property value="#session.merchant.merBank"/></td>
								<td width="25%">支行名称 : <s:property value="#session.merchant.merBranch"/></td>
								<td width="25%">帐号 : <s:property value="@utils.StringUtil@fake(#session.merchant.merAccount,6,4)"/></td>
								<td width="25%">开户人 : <s:property value="@utils.StringUtil@fake(#session.merchant.merBanker,1,1)"/></td>
							</tr>
						</table>
					</div>
					
					<h4>
						提现信息
					</h4>
					<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
						<table style="width: 100%;">
							<tr>
								<td width="25%" height="30">账户余额 : <s:text name="global.format.number"><s:param value="balanceBean.balTotal"/></s:text> CNY</td>
								<td width="25%">可提现余额 : <s:text name="global.format.number"><s:param value="settleBean.steTotal"/></s:text> CNY  </td>
								<td width="25%">风险金比例 : <s:text name="global.format.number"><s:param value="#session.merchant.merVenture"/></s:text> %</td>
								<td width="25%">风险金金额 : <s:text name="global.format.number"><s:param value="settleBean.steSm*#session.merchant.merVenture/100" /></s:text> CNY</td>
							</tr>
							<tr>
								<td  height="30" colspan="3">
									提示 : 
									<s:if test="settleBean.steSm*#session.merchant.merVenture/100>balanceBean.balTotal">
										<font color="red">账户余额小于风险金金额,不满足提现条件</font>
									</s:if>
									<s:else>
										<font color="green">帐号余额大于风险金金额,满足提现条件</font>
									</s:else>
								</td>
							</tr>
							<tr>
								<td width="25%" height="30">提现周期 : <s:text name="global.format.count"><s:param value="#session.merchant.merFreq"/></s:text> 天</td>
								<td colspan="3" >距上次提现 : <s:property value="mbBetween"/> 天</td>
								</td>
							</tr>
							<tr>
								<td  height="30" colspan="3">
									提示 : 
									<s:if test="mbBetween<#session.merchant.merFreq">
										<font color="red">提现间隔时间小于提现周期,不满足提现条件</font>
									</s:if>
									<s:else>
										<font color="green">提现间隔时间大于提现周期,满足提现条件</font>
									</s:else>
								</td>
							</tr>
						</table>
					</div>
						
					<h4>
						提现申请
					</h4>
						
					<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
					<form id="sform" action="mb_savesettle.html" method="post" enctype="multipart/form-data">
						<table width="95%" border="0" >
							<tr>
								<td height="30" width="25%" align="right">提现金额 : </td>
								<td width="75%"><input type="text"   id="mbAmount" name="mbAmount" value="" /> CNY	</td>
							</tr>
							<tr>
								<td height="30" width="25%" align="right">&nbsp;</td>
								<td width="75%">
									<input type="button"  class="btn btn-primary"  value="提交" onclick="formSubmit();"/>
								</td>
							</tr>
						</table>
					</form>
					</div>
						
					<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
					<p>
						1 . 提交提现申请后,工作人员将在1-2个工作日内进行审核操作,本次提现的账款将暂时从账户内扣除,如果审核不通过,账款将返回到账户内.
					</p>
					<p>
						2 . 提示:"提现周期"是指在距上次成功提现的N天内不能反复提现申请,如果提现申请失败则不受影响.
					</p>
					<p>
						3 . 最低提现金额为<s:text name="global.format.number"><s:param value="#session.merchant.merLimit"/></s:text>人民币.
					</p>
					<p>
						4 . 2017年9月1日起,每笔提现将收取20元人民币的转账手续费.
					</p>
					<p>
						5 . 账户余额如果低于风险金额度,将无法进行提现操作.
					</p>
				</div>
					
			</div>
		</div>
		
		
		
		<s:action name="global_foot"  executeResult="true"></s:action>
	</div>
</body>
</html>


